<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="org.apache.shiro.web.filter.authc.FormAuthenticationFilter"%>
<%@ page import="org.apache.shiro.authc.ExcessiveAttemptsException"%>
<%@ page import="org.apache.shiro.authc.IncorrectCredentialsException"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
	<title>登录页</title>
	<link type="text/css" href="${ctx}/static/login/login.css" rel="stylesheet" />
	</head>
	<body>
	<div id="container">
		<div class="logo">
			<a href="#"><img src="${ctx}/static/images/logo.gif" alt="" />
			</a>
			<a href="#">
			<img width="93px" height="54px" src="${ctx}/static/images/logo.jpg" alt=""/>
			</a>
		</div>
		<div id="box">
			<form id="loginForm" action="${ctx}/view/enter" method="post" class="form-horizontal">
			<p class="main">
				<label>Username: </label>
				<input type="text" id="username" name="username"  value="BSC-5" class="input-medium required"/>
				<label>Password: </label>
				<input type="password" id="password" name="password" value="123456" class="input-medium required"/>	
			</p>

			<p class="space">
				<span>
				<!-- <input type="checkbox" id="rememberMe" name="rememberMe"/>Remember me</span> -->
				<input  id="submit_btn" type="submit" value="Login" class="login" />
			</p>
			</form>
			<%
			String error = (String) request.getAttribute(FormAuthenticationFilter.DEFAULT_ERROR_KEY_ATTRIBUTE_NAME);
			if(error != null){
			%>
				<div class="alertInfo">
					<button class="close" data-dismiss="alert">×</button><fmt:message key="system.user.loginFail" />
				</div>
			<%
			}
			%>
			<span class="help-block">
			 	<br/>(<fmt:message key="tour.label.airOffice" />: <b>BSC-5/123456</b>)
				<br/>(公司/部门: <b>company/123456</b>)
				<br/><br/>(实际业务就不要再用——管理员: <b>agentAdmin/654321</b>)</span>
		</div>
	</div>

	</body>
</html>